﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _2021_6_7
{
    public partial class News : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            time.Text = DateTime.Now.ToShortDateString();
        }

        protected void reset_Click(object sender, EventArgs e)
        {
            issue.Text = "";
        }

        protected void commit_Click(object sender, EventArgs e)
        {
            if (issue.Text.Equals(""))
            {
                prompt.Text = "请输入新闻内容！";
            }
            else 
            {
                prompt.Text = $"此新闻来自 {NewsOffice.SelectedValue} 谢谢您提交的新闻！";
            }
        }
    }
}